package com.powernode.spring6.jakarta.service;

import com.powernode.spring6.jakarta.dao.StudentDao;
import jakarta.annotation.Resource;
import jakarta.annotation.Resources;
import org.springframework.stereotype.Service;

@Service
public class StudentService {

//    @Resource(name = "studentDao")
//    @Resource
    private StudentDao studentDao;

    @Resource
    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    public void save() {
        studentDao.insert();
    }

}
